-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[STORM-2510] update checkstyle configuration to lower violations #2112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…tyle-7.7 Just ran this command: ``` % curl -o storm-buildtools/storm_checkstyle.xml https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-7.7/src/main/resources/google_checks.xml ```
1. Update from checkstyle-6.11.2 to checkstyle-7.7. 2. Tweak google_checks.xml from checkstyle-7.7 to have the following changes that are more inline with the way the storm code is written: * 4 space indents instead of 2 * line-length limit is 120 instead of 100 3. Exclude the generated thrift code in storm-client from being checked. 4. Update all maxAllowedViolations to be in-sync with the current number of violations, through use of the `update-all-pom-violations.bash` script that is attached to STORM-2510. NOTE: this also fixes STORM-2507.
|
@vinodkc & @revans2 & @hmcc & @srishtyagrawal : please 👀 when you have a chance. This is a follow-up to:
|
|
Like I said before I am fine with whatever convention we have, so long as we have one. +1 |
|
Oops we need a license in |
…), and add the Apache License boilerplate to the storm_checkstyle.xml file
|
@revans2 : ah, thanks for pointing out the need for license. I copied how google-cloud-intellij is doing it: I also increased the line limit to 140 and adjusted the maxAllowedViolations accordingly. |
revans2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still +1
|
+1 |
are more inline with the way the storm code is written:
violations, through use of the
update-all-pom-violations.bashscript thatis attached to STORM-2510.
NOTE: this also fixes STORM-2507.